import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入
import MyDiscover from '@/views/MyDiscover.vue'
import MyMine from '@/views/MyMine.vue'
import MyFriend from '@/views/MyFriend.vue'

Vue.use(VueRouter)

const routes = [
  { name: 'discover', path: '/discover', component: MyDiscover },
  { name: 'my', path: '/my', component: MyMine },
  { name: 'friend', path: '/friend', component: MyFriend }
]

const router = new VueRouter({
  routes
})

export default router
